package model

//分类表

type Category struct {
	BaseModel
	ParentId uint  		`form:"parent_id" json:"parent_id" gorm:"default:0;comment:分类表category主键id/父级id"`
	Scene uint  		`form:"scene" json:"scene" gorm:"default:0;comment:类别 0未知  1 商品分类 2 会员等级"`
	Name string  		`form:"name" json:"name" binding:"required" gorm:"type:varchar(50) not null;comment:分类名"`
	ImgUrl string  		`form:"img_url" json:"img_url" gorm:"type:varchar(100);comment:图片地址"`
	Url string  		`form:"url" json:"url" gorm:"type:varchar(100);comment:跳转链接"`
	IsNav uint			`form:"is_nav" json:"is_nav" gorm:"type:tinyint(1);defatult:0;comment:是否导航 0 否 1 是"`
	Desc string  		`form:"desc" json:"desc" gorm:"type:varchar(255) not null;comment:描述"`
	//value string  		`form:"value" json:"value" gorm:"type:int(255) not null;comment:值"`
}
